﻿@extends('Admin.layout.blank')
<!--/_menu 作为公共模版分离出去-->
@section('body')
<section class="Hui-article-box">
	<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 系统管理 <span class="c-gray en">&gt;</span> 网站设置 <a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a></nav>
	<div class="Hui-article">
		<article class="cl pd-20">
			<form action="{{ route('system.update') }}" method="post" enctype="multipart/form-data" class="form form-horizontal" id="form-article-add">
				{{csrf_field()}}
				<input type="hidden" name="id" value="{{ $sate->id }}">
				<div id="tab-system" class="HuiTab">
					<div class="tabBar cl"><span>网站设置</span></div>
					@if (session('message'))
					<div class="Huialert Huialert-error">
						<i class="Hui-iconfont">&#xe6a6;</i>{{ session('message') }}
					</div>
					@endif
					@if (count($errors) > 0)
					<div class="Huialert Huialert-danger">
						<ul>
							@foreach ($errors->all() as $error)
							<li><i class="Hui-iconfont">&#xe6a6;</i>{{ $error }}</li>
							@endforeach
						</ul>
					</div>
					@endif
					<div class="tabCon" style="Display:block">
							<div class="row cl">
								<label class="form-label col-xs-4 col-sm-2">
									<span class="c-red">*</span>网站名称：</label>
									<div class="formControls col-xs-8 col-sm-9">
										<input type="text" id="website-title" placeholder="输入网站名称" name="name" value="{{ $sate->name }}" class="input-text">
									</div>
							</div>
							<div class="row cl">
								<label class="form-label col-xs-4 col-sm-2">
									<span class="c-red">*</span>关键词：</label>
									<div class="formControls col-xs-8 col-sm-9">
										<input type="text" id="website-Keywords" placeholder="5个左右,8汉字以内,用英文,隔开" name="keyword" value="{{ $sate->keyword }}" class="input-text">
									</div>
							</div>

							<div class="row cl">
								<label class="form-label col-xs-4 col-sm-2">
									<span class="c-red">*</span>描述：</label>
									<div class="formControls col-xs-8 col-sm-9">
										<input type="text" id="website-description" placeholder="输入网站描述" name="desc" value="{{ $sate->desc}}" class="input-text">
									</div>
							</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2">
								<span class="c-red">*</span>底部版权信息：</label>
								<div class="formControls col-xs-8 col-sm-9">
							<input type="text" id="website-copyright" placeholder="&copy; 2014 H-ui.net" name="message" value="{{ $sate->message }}" class="input-text">
						</div>
						</div>

						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>备案号：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="website-icp" placeholder="京ICP备00000000号" name="record" value="{{ $sate->record }}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>电话：</label>
							<div class="formControls col-xs-8 col-sm-9">
								<input type="text" id="website-icp" placeholder="电话号码" name="phone" value="{{ $sate->phone }}" class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>网站icon:</label>
							<div class="formControls col-xs-8 col-sm-9">
								<img src="http://oydt3ttm3.bkt.clouddn.com/{{ $sate->icon }}" alt="" style="width:150px">
								<input type="file" id="website-icp" name="icon"  class="input-text">
							</div>
						</div>
						<div class="row cl">
							<label class="form-label col-xs-4 col-sm-2"><span class="c-red">*</span>网站Logo:</label>
							<div class="formControls col-xs-8 col-sm-9">
								<img src="http://oydt3ttm3.bkt.clouddn.com/{{ $sate->logo }}" alt="" style="width:150px">
								<input type="file" id="website-icp" name="logo"  class="input-text">
							</div>
						</div>
					</div>
				@node('AdminSystem_update')
				<div class="row cl">
					<div class="col-xs-8 col-sm-9 col-xs-offset-4 col-sm-offset-2">
						<button onClick="article_save_submit();" class="btn btn-primary radius" type="submit"><i class="Hui-iconfont">&#xe632;</i> 保存</button>
						<button onClick="layer_close();" class="btn btn-default radius" type="button">&nbsp;&nbsp;取消&nbsp;&nbsp;</button>
					</div>
				</div>
				@endnode
			</form>
		</article>
	</div>
</section>
@endsction
<!--_footer 作为公共模版分离出去-->
